package com.springbootjdbc.controlller;

import com.springbootjdbc.mapper.JdbcMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class JdbcWeb {

    @Autowired
    private JdbcMapper jdbcMapper;

    @RequestMapping("/select")
    public void selectTest(){
        int i = jdbcMapper.selectAll(4);
        System.out.println(i);
    }
}
